package com.originit.order.server.form;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
public class OrderCreateForm {

    @NotEmpty(message = "买家姓名必填")
    private String name;

    @Pattern(regexp = "\\d{11}",message = "电话号码为11位数字")
    private String phone;

    @NotEmpty(message = "地址必填")
    private String address;

    @NotEmpty(message = "openid必填")
    private String openid;

    @NotEmpty(message = "购物车信息必须存在")
    private String items;

}
